package com.generator.domain;

import java.util.ArrayList;
import java.util.List;

/**
 *  表结构
 * User: wangyanginfo
 * Date: 12-9-21
 * Time: 上午10:46
 *
 */
public class Table {

    // 对应的Mapper路径类名
    private String namespace;
    // 对应的ResultMap
    private String resultMapId;
    // 对应的ResultMap路径类名
    private String resultMapType;

    // 表名称
    private String name;
    // 注解
    private String comment;
    // 列集合
    private List<Column> columns;

    // 对应的类名
    private String className;
    // 主键
    private List<Column> ids = new ArrayList<Column>();

    public String getNamespace() {
        return namespace;
    }

    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

    public String getResultMapId() {
        return resultMapId;
    }

    public void setResultMapId(String resultMapId) {
        this.resultMapId = resultMapId;
    }

    public String getResultMapType() {
        return resultMapType;
    }

    public void setResultMapType(String resultMapType) {
        this.resultMapType = resultMapType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public List<Column> getColumns() {
        return columns;
    }

    public void setColumns(List<Column> columns) {
        this.columns = columns;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public List<Column> getIds() {
        return ids;
    }

    public void setIds(List<Column> ids) {
        this.ids = ids;
    }
}
